﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace YJKRevitDimensionText.DoorWindowDim
{
	public class ElementComparer : IComparer<Element>
	{
		public int Compare(Element elemFirst, Element elemSecond)
		{
			XYZ point = (elemFirst.Location as LocationPoint).Point;
			return (elemSecond.Location as LocationPoint).Point.Z.CompareTo(point.Z);
		}
	}
}
